package com.bnlr.lrparking.appui.appoint;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.bnlr.lrparking.R;
import com.bnlr.lrparking.base.BaseActivity;
import com.bnlr.lrparking.event.PaySucceeEvent;

import org.greenrobot.eventbus.EventBus;

/**
 * 预约成功页面
 *
 * Created by hp on 2017/8/21.
 */

public class SubscribeSucceedActivity extends BaseActivity {

    private ImageView img_subscribe;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_subscribesuccess);
        initView();
    }

    private void initView(){
        img_subscribe=(ImageView) findViewById(R.id.img_subscribe);
        img_subscribe.setOnClickListener(this);

    }

    @Override
    public void onClick(View v) {
        super.onClick(v);
        switch (v.getId()){
            case R.id.img_subscribe:
                //完成关闭其他的界面
                EventBus.getDefault().post(new PaySucceeEvent());
                finish();
                break;
        }
    }
    @Override
    public void onBackPressed() {
        EventBus.getDefault().post(new PaySucceeEvent());
        finish();
    }
}
